package com.demo.visitor16;

/**
 * 具体元素：MedicineA.java
 */
public class MedicineA extends Medicine{
 
    public MedicineA(String name, double price) {
        super(name, price);
    }
 
    @Override
    public void accept(Visitor visitor) {
        visitor.visitor(this);
    }
}